package com.neo.springcloud.alibaba.service;

import com.neo.springcloud.alibaba.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @InterfaceName: AccountService
 * @Title: cloud2021
 * @Package: com.neo.springcloud.alibaba.service
 * @Description:
 * @Author: Kisen
 * @Date: 2021/11/25 0:19
 */
@FeignClient(value = "seata-account-service")
public interface AccountService {

    @PostMapping(value = "/account/decrease")
    CommonResult decrease(@RequestParam("userId") Long userId,
                          @RequestParam("money") BigDecimal money);
}
